home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
033a
/
sb_event.zip
/
BUL_MOD.PRG
< prev
next >
Wrap
Text File
|
1990-07-29
|
3KB
|
137 lines
Silver Bullet Sysop;
This is the portion of the sbullet.prg that will envoke a nice
little addon for the EVENT TIMER.
Only one line of code need be added "menu_time()"
You will find it at the very bottom of this source file.
If you are using ALINK a suggestion is to rename the SBULLET.PRG
to another name like SBULLETT.PRG and create a new sbullet.prg file
with the one line code of:
DO SBULLETT
And add this new name to your 1st .clp file
This will allow the greatest amount of code to be put in an overlay
to do all the work..
Checkout databased advisor August issue Rick Spence/HardCore Clipper etc...
Anyway here is the code segment, I included a bunch so there would
be no mistaking where to add the 1 line of code.
Bob Morgan
The Orlando Bullet
(407) 277-2007
***************************************************************************
PROCEDURE board
SAVE SCREEN TO host
rtime = " "
break_req = false
newkey = 0
tempkey = 0
expert = false
errors = false
pageblock = !pageblock
DO WHILE newkey <> 27 .AND. !quit_pgm
AL_FLUSH() && <----------------------- This is an ALINK COMMAND TO FLUSH
BUFFERS (not a must but it does'nt
hurt)
SET CURSOR(false)
STORE false TO again, local, authorized, sysop, auto_disc, uploaded, loc_abort
good_exit = "C"
STORE 0 TO logrec,user_record,newkey
RESTORE SCREEN FROM host
DO RESET
@ 00,00
rtime = " "
KEYBOARD ""
SETCOLOR(inverse)
SELECT 2
IF NET_USE(maindir,"MAIL",SHARED,10)
setndx(maindir,"mail_x")
ELSE
open_error("SBULLET",Procline(),"Unable to open " + maindir + "MAIL.DBF","","")
ENDIF
SEEK UPPER(sbparms->sysop_l + sbparms->sysop_f) + "N"
IF FOUND()
@ 00,20 SAY " Mail waiting "
ENDIF
closefile("MAIL")
SETCOLOR(yellow)
@ 20,20 SAY lastcall
SELECT USER
SETCOLOR(inverse)
IF call_received
@ 00,01 SAY " Call received "
ENDIF
SETCOLOR(binverse)
@ 19,04 SAY " Last call "
errors = FILE(errfile)
IF errors
@ 00,37 SAY " Check Error file "
SETCOLOR(inverse)
@ 22,09 SAY " ERROR "
@ 23,09 SAY " FILE "
ENDIF
IF pageblock
@ 22,33 SAY " PAGE "
@ 23,33 SAY " OFF "
ELSE
SETCOLOR(binverse)
@ 22,33 SAY " PAGE "
@ 23,33 SAY " ON "
ENDIF
IF statuscts(port)
SETCOLOR(silver)
@2,17 SAY "Waiting for call..."
ELSE
SETCOLOR(red)
@2,17 SAY "No modem response..."
ENDIF
SETCOLOR(green)
startsav = swgtime() + scrnsav * 60
************ If we are not on line kick in the screen saver
************ Also this is the place to setup the EVENT_TIME
DO WHILE ! statuscd(port)
newkey = INKEY()
************************
*
* EVENT TIMER FUNCTION MENU DISPLAY
*
************************
menu_time() && <--------------- ADD-IN FOR THE EVENT TIMER HERE *
*********************************************************************
*
* This will display the status of the scheduled event time and a 12 hr
* clock as well this is not a manditory function but it sure is nice.
*
*********************************************************************